<?php include $this->getViewFile('/common/Head') ?>
<Admintemplate file="Common/Head"/>
<body class="J_scroll_fixed">
<div class="wrap jj">
  <?php include $this->getViewFile('/common/Nav') ?>
  <div class="common-form">
    <form method="post" class="J_ajaxForm" action="<?php echo AdminBase::U("edit") ?>">
      <div class="h_a">菜单信息</div>
      <div class="table_list">
        <table cellpadding="0" cellspacing="0" class="table_form" width="100%">
          <input type="hidden" name="id" value="{$id}" />
          <tbody>
            <tr>
              <td width="140">上级:</td>
              <td><select name="parentid">
                  <option value="0">作为一级菜单</option>
                  <?php echo $select_categorys;?>
                </select></td>
            </tr>
            <tr>
              <td>名称:</td>
              <td><input type="text" class="input" name="name" value="<?php echo $data['name']?>"></td>
            </tr>
            <tr>
              <td>模块:</td>
              <td><input type="text" class="input" name="app" id="app" value="<?php echo $data['app']?>"></td>
            </tr>
            <tr>
              <td>控制器:</td>
              <td><input type="text" class="input" name="controller" id="controller" value="<?php echo $data['controller']?>"></td>
            </tr>
            <tr>
              <td>方法:</td>
              <td><input type="text" class="input" name="action" id="action" value="<?php echo $data['action']?>"></td>
            </tr>
            <tr>
              <td>参数:</td>
              <td><input type="text" class="input length_5" name="data" value="<?php echo $data['parameter']?>">
                例:groupid=1&amp;type=2</td>
            </tr>
            <tr>
              <td>备注:</td>
              <td><textarea name="remark" rows="5" cols="57"><?php echo $data['remark']?></textarea></td>
            </tr>
            <tr>
              <td>状态:</td>
              <td><select name="status">
                  <option value="1" <?php  echo $data['status']==1?'selected':''; ?>>显示</option>
                  <option value="0" <?php  echo $data['status']==0?'selected':''; ?>>不显示</option>
                </select>需要明显不确定的操作时建议设置为不显示，例如：删除，修改等</td>
            </tr>
            <tr>
              <td>类型:</td>
              <td><select name="type">
                  <option value="1" <?php  echo $data['type']==1?'selected':''; ?>>权限认证+菜单</option>
                   <option value="0" <?php  echo $data['type']==0?'selected':''; ?>>只作为菜单</option>
                </select>
                注意：“权限认证+菜单”表示加入后台权限管理，纯碎是菜单项请不要选择此项。</td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="">
        <div class="btn_wrap_pd">
          <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">修改</button>
          <input type="hidden" name="id" value="<?php echo $data['id']?>" />
        </div>
      </div>
    </form>
  </div>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>